package com.wlyuan.open.scanner.repository;

import com.wlyuan.open.scanner.domain.driver.Driver;

import java.util.List;

/**
 * @author lijing
 * @description
 */
public interface DriverRepository {

    /**
     * 查询司机数据
     *
     * @return
     */
    List<Driver> list();

    /**
     * 根据id获取详情
     *
     * @param driverId
     * @return
     */
    Driver getById(Long driverId);

    /**
     * 根据租户获取
     *
     * @param tenantId
     */
    void getByTenantId(Long tenantId);

    List<Long> getByTime(String startTime, String endTime);

    List<Long> getByTenantIdTime(Long tenantId, String startTime, String endTime);
}
